﻿<%@ Page Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="My.aspx.cs"
    Inherits="VPN.My" Title="帐号管理-流量信息" %>

<asp:Content ID="Content3" ContentPlaceHolderID="main" runat="server">
    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" CellPadding="4"
        ForeColor="#333333" GridLines="None" Height="50px" Width="500px" HeaderStyle-Width="120px">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <Fields>
            <asp:BoundField DataField="EffectiveQuotaTotal" HeaderText="总流量" ReadOnly="True"
                DataFormatString="{0:0.000}M">
                <HeaderStyle Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="TotalUse" HeaderText="已使用流量" ReadOnly="True" DataFormatString="{0:0.000}M" />
            <asp:BoundField DataField="TotalRemain" HeaderText="剩余流量" ReadOnly="True" DataFormatString="{0:0.000}M" />
            <asp:BoundField DataField="LastAutoReset" HeaderText="本周期开始时间" ReadOnly="True" SortExpression="LastAutoReset" />
            <asp:TemplateField HeaderText="下次流量恢复时间" SortExpression="LastAutoReset">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# System.Convert.ToDateTime(Eval("LastAutoReset")).AddMonths(1) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="LastUpdate" HeaderText="最后更新时间" ReadOnly="True" SortExpression="LastUpdate" />
        </Fields>
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#999999" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:DetailsView>
</asp:Content>
